package com.xzz.cloud.alibaba.service;

import com.xzz.cloud.entity.CommonResult;
import com.xzz.cloud.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @author: hhz
 * @createDate: 2021-4-6
 */
@Component
public class PaymentFallBackService implements PaymentService{
    @Override
    public CommonResult<Payment> payment(Long id) {
        return new CommonResult<>(444444,"服务降级返回,----PaymentFallBackService",new Payment(id, "errorSerial"));
    }
}
